#ifndef GAMENETCLIENT_H_
#define GAMENETCLIENT_H_
#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <netinet/in.h>
#include <string>
#include "GameNetServer.h"

using namespace std;

class GameNetClient
  {
private:
  int *sock;
  std::string id;
  std::string last_message;
public:

 GameNetClient(int * sock, std::string &id);
  
  void setSocket(int *initSock);

  void sendMessage(std::string &message);/* zdefiniowac wywolanie*/

  std::string & getId();

  void setId(std::string & idToSet);

  virtual ~GameNetClient();

  std::string & getLastMessage();
  
  void setLastMessage(std::string & message);
  };

#endif /*GAMENETCLIENT_H_*/
